package com.taiyo.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.taiyo.modules.api.dao.TStyleDao;
import com.taiyo.modules.api.entity.TStyleEntity;
import com.taiyo.modules.api.service.TStyleService;



@Service("tStyleService")
public class TStyleServiceImpl implements TStyleService {
	@Autowired
	private TStyleDao tStyleDao;
	
	@Override
	public TStyleEntity queryObject(Long id){
		return tStyleDao.queryObject(id);
	}
	
	@Override
	public List<TStyleEntity> queryList(Map<String, Object> map){
		return tStyleDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tStyleDao.queryTotal(map);
	}
	
	@Override
	public void save(TStyleEntity tStyle){
		tStyleDao.save(tStyle);
	}
	
	@Override
	public void update(TStyleEntity tStyle){
		tStyleDao.update(tStyle);
	}
	
	@Override
	public void delete(Long id){
		tStyleDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tStyleDao.deleteBatch(ids);
	}
	
}
